home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
ufomania.swf
/
scripts
/
Spawner.as
< prev
Wrap
Text File
|
2008-03-12
|
38KB
|
756 lines
var §\x01§ = 230;
loop0:
while(true)
{
if(eval("\x01") == 230)
{
set("\x01",eval("\x01") + 112);
§§push(true);
}
else if(eval("\x01") == 872)
{
set("\x01",eval("\x01") - 641);
§§push(eval(§§pop()));
}
else
{
if(eval("\x01") == 928)
{
set("\x01",eval("\x01") - 220);
eval(§§constant(1))[§§constant(2)](§§constant(0),eval(§§constant(0)));
break;
}
if(eval("\x01") == 17)
{
set("\x01",eval("\x01") + 847);
§§push(true);
}
else if(eval("\x01") == 116)
{
set("\x01",eval("\x01") + 598);
}
else if(eval("\x01") == 577)
{
set("\x01",eval("\x01") + 201);
var §§pop() = §§pop();
}
else if(eval("\x01") == 938)
{
set("\x01",eval("\x01") - 114);
if(§§pop())
{
set("\x01",eval("\x01") + 104);
}
}
else
{
if(eval("\x01") == 521)
{
set("\x01",eval("\x01") - 405);
§§pop() implements ;
if(_loc2_[§§constant(38)](_loc9_[§§constant(33)],§§pop()[§§pop()],§§pop()))
{
if(_loc6_[§§constant(33)] > _loc2_[§§constant(41)])
{
var _loc4_ = (- _loc2_[§§constant(39)]) * (1 - (_loc2_[§§constant(43)] - _loc9_[§§constant(33)]) / _loc2_[§§constant(44)]);
_loc6_[§§constant(33)] += _loc4_;
_loc6_[§§constant(33)] = _loc2_[§§constant(42)](_loc6_[§§constant(33)],_loc2_[§§constant(41)],_loc2_[§§constant(40)]);
}
}
if(_loc4_ != 0)
{
var _loc7_ = _loc1_[§§constant(8)][§§constant(45)];
var _loc3_ = 0;
while(_loc3_ < _loc7_)
{
_loc1_[§§constant(8)][_loc3_][§§constant(33)] -= _loc4_;
_loc3_ = _loc3_ + 1;
}
}
var _loc8_ = _loc2_[§§constant(46)];
var _loc5_ = _loc1_[§§constant(8)][§§constant(45)];
_loc8_[§§constant(47)][§§constant(20)] = _loc5_ >= 3;
_loc8_[§§constant(48)][§§constant(20)] = _loc5_ >= 6;
_loc8_[§§constant(49)][§§constant(20)] = _loc5_ >= 8;
_loc8_[§§constant(50)][§§constant(20)] = _loc5_ >= 10;
_loc8_[§§constant(51)][§§constant(20)] = _loc5_ >= 12;
if(_loc5_ < 8)
{
_loc1_["\"ڻ"] = _loc2_[§§constant(3)];
}
else if(_loc5_ >= 8 && _loc5_ < 12)
{
_loc1_[".�"] = _loc2_[§§constant(3)] + 4;
}
else if(_loc5_ >= 12 && _loc5_ < 20)
{
_loc1_[".�"] = _loc2_[§§constant(3)] + 12;
}
else if(_loc5_ >= 20)
{
_loc1_[§§constant(2)] = _loc2_[§§constant(3)] + 20;
}
§§pop()[§§pop()] = §§pop();
_loc2_[§§constant(55)] = function(xPos, yPos, bMovingRight, range)
{
var _loc7_ = _root[§§constant(35)];
var _loc5_ = this[§§constant(31)] + eval(§§constant(56))[§§constant(57)](_loc7_[§§constant(31)]);
var _loc4_ = this[§§constant(33)] + eval(§§constant(56))[§§constant(57)](_loc7_[§§constant(33)]);
if(bMovingRight && _loc5_ > xPos)
{
return _root[§§constant(38)](_loc4_,yPos - range,yPos + range);
}
if(!bMovingRight && _loc5_ < xPos)
{
return _root[§§constant(38)](_loc4_,yPos - range,yPos + range);
}
return false;
};
_loc2_[§§constant(58)] = function()
{
if(this[§§constant(12)])
{
return undefined;
}
_root[§§constant(52)]--;
var _loc3_ = _root[§§constant(46)];
if(_root[§§constant(52)] == 0 && _loc3_[§§constant(59)] != undefined)
{
_loc3_[§§constant(59)][§§constant(25)](§§constant(60));
}
if(_root[§§constant(52)] == 1 && _loc3_[§§constant(61)] != undefined)
{
_loc3_[§§constant(61)][§§constant(25)](§§constant(60));
}
if(_root[§§constant(52)] == 2 && _loc3_[§§constant(62)] != undefined)
{
_loc3_[§§constant(62)][§§constant(25)](§§constant(60));
}
this[§§constant(11)](this[§§constant(17)]);
this[".�"] = _root[§§constant(3)];
_root[§§constant(64)](_root[§§constant(63)]);
};
_loc2_[§§constant(65)] = function()
{
if(this[§§constant(12)])
{
return undefined;
}
if(this[§§constant(27)] == this[§§constant(10)])
{
this[§§constant(28)]();
}
};
_loc2_[§§constant(66)] = function()
{
if(this[§§constant(12)])
{
return undefined;
}
if(this[§§constant(27)] == this[§§constant(10)])
{
this[§§constant(22)]();
}
};
_loc2_[§§constant(10)] = 1;
_loc2_[§§constant(17)] = 2;
_loc2_[§§constant(18)] = 3;
_loc2_[§§constant(54)] = 4;
§§constant(67)(eval("�t")["��S"][§§constant(15)],null,1);
break;
}
if(eval("\x01") == 793)
{
set("\x01",eval("\x01") - 776);
}
else
{
if(eval("\x01") == 361)
{
set("\x01",eval("\x01") - 211);
loop1:
while(true)
{
while(true)
{
if(eval("\x01") == 63)
{
set("\x01",eval("\x01") + 536);
§§push(true);
}
else if(eval("\x01") == 25)
{
set("\x01",eval("\x01") + 659);
}
else if(eval("\x01") == 668)
{
set("\x01",eval("\x01") - 590);
if(§§pop())
{
set("\x01",eval("\x01") - 66);
}
}
else if(eval("\x01") == 26)
{
set("\x01",eval("\x01") + 231);
§§push(eval(§§pop()));
}
else if(eval("\x01") == 776)
{
set("\x01",eval("\x01") - 421);
}
else if(eval("\x01") == 931)
{
set("\x01",eval("\x01") - 395);
var §§pop() = §§pop();
}
else if(eval("\x01") == 896)
{
set("\x01",eval("\x01") - 228);
§§push(true);
}
else if(eval("\x01") == 419)
{
set("\x01",eval("\x01") + 512);
§§push("\x0f");
§§push(1);
}
else
{
if(eval("\x01") == 377)
{
set("\x01",eval("\x01") - 17);
toggleHighQuality();
§§pop() implements ;
nextFrame();
nextFrame();
toggleHighQuality();
§§pop()[§§pop()] = §§pop()[delete §§pop()[§§pop()]][§§constant(44)] + eval(§§constant(19))[§§constant(59)](_loc3_[§§constant(54)]);
_loc5_ = eval(§§constant(19))[§§constant(60)](_loc3_[§§constant(54)],_loc3_[§§constant(53)]);
_loc1_[§§constant(61)] = _loc5_ * 180 / 3.141592653589793 + 90;
false;
_loc1_[§§constant(17)] = _loc6_;
§§pop()[§§pop()] = §§pop();
_loc2_[§§constant(65)] = function()
{
this[§§constant(66)] = -2;
this[§§constant(22)](Object[§§constant(41)]);
_root[§§constant(67)][§§constant(68)][§§constant(69)](this);
};
_loc2_[§§constant(70)] = function()
{
if(this[§§constant(17)] != Object[§§constant(41)])
{
trace(§§constant(71));
}
this[§§constant(22)](Object[§§constant(38)]);
var _loc4_ = _root[§§constant(67)];
var _loc5_ = _loc4_[§§constant(68)][§§constant(72)];
var _loc3_ = 0;
while(_loc3_ < _loc5_)
{
if(_loc4_[§§constant(68)][_loc3_] == this)
{
_loc4_[§§constant(68)][§§constant(73)](_loc3_,1);
if(_loc4_[§§constant(68)][§§constant(72)] == _loc5_)
{
trace(§§constant(74));
}
}
_loc3_ = _loc3_ + 1;
}
};
_loc2_[§§constant(75)] = function()
{
var _loc5_ = _root[§§constant(76)][§§constant(72)];
var _loc4_ = 0;
while(_loc4_ < _loc5_)
{
var _loc3_ = _root[§§constant(76)][_loc4_];
if(this[§§constant(44)] >= _loc3_[§§constant(44)] && this[§§constant(44)] <= _loc3_[§§constant(44)] + _loc3_[§§constant(77)] && this[§§constant(57)] >= _loc3_[§§constant(57)] && this[§§constant(57)] <= _loc3_[§§constant(57)] + _loc3_[§§constant(78)])
{
return _loc3_;
}
_loc4_ = _loc4_ + 1;
}
return undefined;
};
_loc2_[§§constant(79)] = function(theState)
{
switch(theState)
{
case Object[§§constant(21)]:
return §§constant(21);
case Object[§§constant(18)]:
return §§constant(18);
case Object[§§constant(41)]:
return §§constant(41);
case Object[§§constant(39)]:
return §§constant(39);
case Object[§§constant(42)]:
return §§constant(42);
case Object[§§constant(43)]:
return §§constant(43);
case Object[§§constant(80)]:
return §§constant(80);
case Object[§§constant(38)]:
return §§constant(38);
case Object[§§constant(40)]:
return §§constant(40);
default:
return §§constant(81);
}
};
_loc2_[§§constant(82)] = function()
{
var _loc3_ = _root[§§constant(67)];
var _loc4_ = _root[§§constant(49)];
var _loc9_ = this[§§constant(57)] + _loc4_[§§constant(57)];
var _loc8_ = this[§§constant(44)] + _loc4_[§§constant(44)];
var _loc14_ = 999;
var _loc16_ = _loc3_[§§constant(83)] && _loc9_ > _loc3_[§§constant(57)] - _root[§§constant(84)] && _loc9_ < _loc3_[§§constant(57)] + _root[§§constant(84)] && _loc8_ < _loc3_[§§constant(44)] + _root[§§constant(85)] && _loc8_ > _loc3_[§§constant(44)];
if(this[§§constant(17)] == Object[§§constant(18)] || this[§§constant(17)] == Object[§§constant(21)] || this[§§constant(17)] == Object[§§constant(42)] || this[§§constant(17)] == Object[§§constant(38)] || this[§§constant(17)] == Object[§§constant(43)])
{
if(_loc16_)
{
this[§§constant(65)]();
return undefined;
}
}
if(this[§§constant(30)] > 0)
{
this[§§constant(35)] = 80;
}
else
{
this[§§constant(35)] = -80;
}
if(this[§§constant(17)] == Object[§§constant(18)] || this[§§constant(17)] == Object[§§constant(21)])
{
var _loc12_ = _loc3_[§§constant(57)] - _loc9_;
var _loc11_ = _loc3_[§§constant(44)] - _loc8_;
_loc14_ = _loc12_ * _loc12_ + _loc11_ * _loc11_;
if(_loc14_ < _root[§§constant(86)])
{
this[§§constant(22)](Object[§§constant(42)]);
return undefined;
}
}
if(this[§§constant(17)] == Object[§§constant(18)])
{
this[§§constant(8)] = this[§§constant(8)] + 1;
if(this[§§constant(8)] >= this[§§constant(6)])
{
if(eval(§§constant(19))[§§constant(20)]() > 0.5)
{
this[§§constant(22)](Object[§§constant(21)]);
}
else if(eval(§§constant(19))[§§constant(20)]() < _root[§§constant(87)])
{
this[§§constant(22)](Object[§§constant(43)]);
}
else
{
this[§§constant(22)](Object[§§constant(21)]);
}
}
}
else if(this[§§constant(17)] == Object[§§constant(21)] || this[§§constant(17)] == Object[§§constant(42)])
{
this[§§constant(57)] = eval(§§constant(19))[§§constant(59)](this[§§constant(57)] + this[§§constant(62)] * this[§§constant(30)]);
var _loc13_ = this[§§constant(88)][§§constant(57)] + this[§§constant(88)][§§constant(78)];
if(this[§§constant(57)] >= _loc13_)
{
this[§§constant(30)] = - this[§§constant(30)];
this[§§constant(57)] = _loc13_;
}
else if(this[§§constant(57)] <= this[§§constant(88)][§§constant(57)])
{
this[§§constant(30)] = - this[§§constant(30)];
this[§§constant(57)] = this[§§constant(88)][§§constant(57)];
}
this[§§constant(8)] = this[§§constant(8)] + 1;
if(this[§§constant(8)] >= this[§§constant(6)])
{
if(eval(§§constant(19))[§§constant(20)]() > 0.5)
{
this[§§constant(22)](Object[§§constant(18)]);
}
else if(eval(§§constant(19))[§§constant(20)]() < _root[§§constant(87)])
{
this[§§constant(22)](Object[§§constant(43)]);
}
else
{
this[§§constant(22)](Object[§§constant(18)]);
}
}
}
else if(this[§§constant(17)] == Object[§§constant(41)])
{
if(!_loc16_)
{
this[§§constant(70)]();
return undefined;
}
var _loc21_ = _loc3_[§§constant(57)] + eval(§§constant(19))[§§constant(89)](_loc4_[§§constant(57)]);
var _loc20_ = _loc3_[§§constant(44)] + eval(§§constant(19))[§§constant(89)](_loc4_[§§constant(44)]);
this[§§constant(57)] += (_loc21_ - this[§§constant(57)]) / this[§§constant(23)];
this[§§constant(44)] += (_loc20_ - this[§§constant(44)] + 80) / this[§§constant(24)];
}
else if(this[§§constant(17)] == Object[§§constant(38)])
{
this[§§constant(25)] += 1;
if(this[§§constant(25)] > this[§§constant(27)])
{
this[§§constant(25)] = this[§§constant(27)];
}
this[§§constant(44)] += this[§§constant(25)];
this[§§constant(57)] += this[§§constant(29)];
if(this[§§constant(57)] >= _root[§§constant(90)])
{
this[§§constant(57)] = _root[§§constant(90)];
this[§§constant(29)] = - this[§§constant(29)];
}
else if(this[§§constant(57)] <= 0)
{
this[§§constant(57)] = 0;
this[§§constant(29)] = - this[§§constant(29)];
}
var _loc15_ = _loc4_[§§constant(58)][§§constant(57)] - this[§§constant(57)];
var _loc17_ = _loc4_[§§constant(58)][§§constant(44)] - this[§§constant(44)];
var _loc19_ = _loc15_ * _loc15_ + _loc17_ * _loc17_;
var _loc6_ = true;
if(_loc19_ <= _root[§§constant(91)])
{
this[§§constant(22)](Object[§§constant(40)]);
_loc6_ = false;
}
if(_loc6_)
{
var _loc10_ = this[§§constant(75)]();
if(_loc10_ != undefined)
{
this[§§constant(44)] = _loc10_[§§constant(44)];
if(eval(§§constant(19))[§§constant(89)](this[§§constant(26)] - this[§§constant(44)]) > _root[§§constant(92)])
{
this[§§constant(22)](Object[§§constant(39)]);
}
else
{
this[§§constant(22)](Object[§§constant(42)]);
this[§§constant(88)] = _loc10_;
}
_loc6_ = false;
}
if(_loc6_ && this[§§constant(44)] > 2000)
{
this[§§constant(22)](Object[§§constant(39)]);
}
}
}
else if(this[§§constant(17)] == Object[§§constant(43)])
{
_loc21_ = _loc3_[§§constant(57)] + eval(§§constant(19))[§§constant(89)](_loc4_[§§constant(57)]);
if(_loc21_ > this[§§constant(57)])
{
this[§§constant(30)] = 1;
}
else
{
this[§§constant(30)] = -1;
}
this[§§constant(31)] = this[§§constant(31)] + 1;
if(this[§§constant(31)] >= this[§§constant(32)])
{
var _loc18_ = _loc3_[§§constant(17)] == _loc3_[§§constant(93)];
if(_loc18_)
{
var _loc7_ = _loc4_[§§constant(97)](§§constant(95),§§constant(95) + _root[§§constant(96)],_loc4_[§§constant(94)]());
_root[§§constant(96)] = _root[§§constant(96)] + 1;
_loc7_[§§constant(57)] = this[§§constant(57)];
_loc7_[§§constant(44)] = this[§§constant(44)] - 10;
var _loc5_ = new eval(§§constant(50))[§§constant(51)][§§constant(52)]();
_loc5_[§§constant(53)] = this[§§constant(30)] * 1;
_loc5_[§§constant(54)] = -1;
_loc5_[§§constant(56)](_root[§§constant(98)]);
_loc7_[§§constant(99)](_loc3_,this[§§constant(30)] * _root[§§constant(98)],_loc5_);
false;
_root[§§constant(101)](_root[§§constant(100)]);
}
this[§§constant(31)] = 0;
}
this[§§constant(8)] = this[§§constant(8)] + 1;
if(this[§§constant(8)] >= this[§§constant(6)])
{
if(eval(§§constant(19))[§§constant(20)]() > 0.5)
{
this[§§constant(22)](Object[§§constant(18)]);
}
else if(eval(§§constant(19))[§§constant(20)]() > 0.5)
{
this[§§constant(22)](Object[§§constant(21)]);
}
else
{
this[§§constant(22)](Object[§§constant(18)]);
}
}
}
};
_loc1_[§§constant(21)] = 1;
_loc1_[§§constant(18)] = 2;
_loc1_[§§constant(41)] = 3;
_loc1_[§§constant(39)] = 4;
_loc1_[§§constant(42)] = 5;
_loc1_[§§constant(43)] = 6;
_loc1_[§§constant(80)] = 7;
_loc1_[§§constant(38)] = 8;
_loc1_[§§constant(40)] = 9;
§§constant(102)(Spawner.Object[§§constant(4)],null,1);
break loop0;
}
if(eval("\x01") == 517)
{
set("\x01",eval("\x01") + 379);
}
else
{
if(eval("\x01") == 355)
{
break loop1;
}
if(eval("\x01") == 536)
{
set("\x01",eval("\x01") - 510);
§§push("\x0f");
}
else if(eval("\x01") == 572)
{
set("\x01",eval("\x01") - 195);
if(§§pop())
{
set("\x01",eval("\x01") - 17);
}
}
else
{
if(eval("\x01") == 542)
{
set("\x01",eval("\x01") - 542);
break loop0;
}
if(eval("\x01") == 360)
{
set("\x01",eval("\x01") + 59);
}
else
{
if(eval("\x01") == 78)
{
set("\x01",eval("\x01") - 66);
set(§§pop(),§§pop() + 128);
break loop0;
}
if(eval("\x01") == 684)
{
set("\x01",eval("\x01") - 112);
§§push(true);
}
else
{
if(eval("\x01") == 260)
{
break;
}
if(eval("\x01") == 257)
{
set("\x01",eval("\x01") + 661);
§§push(!§§pop());
}
else
{
if(eval("\x01") == 111)
{
continue loop1;
}
if(eval("\x01") == 997)
{
set("\x01",eval("\x01") - 101);
}
else if(eval("\x01") == 918)
{
set("\x01",eval("\x01") - 142);
if(§§pop())
{
set("\x01",eval("\x01") - 421);
}
}
else if(eval("\x01") == 599)
{
set("\x01",eval("\x01") - 339);
if(§§pop())
{
set("\x01",eval("\x01") + 257);
}
}
else
{
if(eval("\x01") != 12)
{
break loop0;
}
set("\x01",eval("\x01") + 672);
}
}
}
}
}
}
}
}
set("\x01",eval("\x01") + 257);
_loc4_ = §§pop() + eval(§§constant(56))[§§constant(57)](§§pop());
if(bMovingRight && _loc5_ > xPos)
{
return _root[§§constant(38)](_loc4_,yPos - range,yPos + range);
}
if(!bMovingRight && _loc5_ < xPos)
{
return _root[§§constant(38)](_loc4_,yPos - range,yPos + range);
}
return false;
}
set("\x01",eval("\x01") + 187);
if(!Spawner.Object)
{
Spawner.Object extends eval(§§constant(8));
var _loc2_ = Spawner.Object = function()
{
super();
this.registerClass = 0;
this[§§constant(3)] = 0;
this[§§constant(4)] = _root[§§constant(5)];
this[§§constant(6)] = this[§§constant(4)];
this[§§constant(7)] = false;
}[§§constant(9)];
_loc2_[§§constant(10)] = function(bPause)
{
this[§§constant(7)] = bPause;
};
_loc2_[§§constant(11)] = function()
{
if(this[§§constant(7)])
{
_root[§§constant(12)] = getTimer() - _root[§§constant(13)];
return undefined;
}
_root[§§constant(13)] = getTimer() - _root[§§constant(12)];
_root[§§constant(14)] = eval(§§constant(15))[§§constant(16)](_root[§§constant(13)] * 0.001);
this.registerClass = this.registerClass + 1;
var _loc8_ = false;
var _loc11_ = _root[§§constant(17)] - _root[§§constant(18)] - _root[§§constant(19)];
if(_root[§§constant(17)] < _root[§§constant(20)] && this.registerClass >= this[§§constant(3)] && _loc11_ < _root[§§constant(21)])
{
_loc8_ = true;
this.registerClass = 0;
}
if(_loc8_)
{
var _loc4_ = _root[§§constant(22)];
var _loc5_ = _loc4_[§§constant(25)](§§constant(24),§§constant(24) + _root[§§constant(17)],_loc4_[§§constant(23)]());
_root[§§constant(17)] = _root[§§constant(17)] + 1;
var _loc3_ = _root[§§constant(26)]();
_loc5_[§§constant(27)] = _root[§§constant(29)](_loc3_[§§constant(27)],_loc3_[§§constant(27)] + _loc3_[§§constant(28)]);
_loc5_[§§constant(30)] = _loc3_[§§constant(30)];
_loc5_[§§constant(31)] = _loc3_;
}
this[§§constant(6)] = this[§§constant(6)] + 1;
var _loc9_ = false;
if(this[§§constant(6)] >= this[§§constant(4)])
{
_loc9_ = true;
this[§§constant(6)] = 0;
}
if(_loc9_)
{
_loc4_ = _root[§§constant(22)];
var _loc6_ = undefined;
var _loc7_ = undefined;
if(eval(§§constant(15))[§§constant(32)]() > 0.5)
{
_loc6_ = _loc4_[§§constant(25)](§§constant(35),§§constant(33) + _root[§§constant(34)],_loc4_[§§constant(23)]());
_loc7_ = false;
}
else
{
_loc6_ = _loc4_[§§constant(25)](§§constant(33),§§constant(33) + _root[§§constant(34)],_loc4_[§§constant(23)]());
_loc7_ = true;
}
var _loc10_ = eval(§§constant(15))[§§constant(32)]() > 0.5;
_loc6_[§§constant(36)](_loc10_,_loc7_);
}
};
§§push(§§constant(37)(Spawner.Object[§§constant(9)],null,1));
}
§§pop();
break;
}
if(eval("\x01") == 714)
{
set("\x01",eval("\x01") - 137);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 864)
{
set("\x01",eval("\x01") - 343);
if(§§pop())
{
set("\x01",eval("\x01") - 405);
}
}
else if(eval("\x01") == 150)
{
set("\x01",eval("\x01") - 133);
}
else if(eval("\x01") == 778)
{
set("\x01",eval("\x01") + 94);
§§push("\x0f");
}
else if(eval("\x01") == 790)
{
set("\x01",eval("\x01") - 76);
}
else if(eval("\x01") == 231)
{
set("\x01",eval("\x01") + 707);
§§push(!§§pop());
}
else if(eval("\x01") == 824)
{
set("\x01",eval("\x01") + 104);
}
else
{
if(eval("\x01") == 708)
{
set("\x01",eval("\x01") - 708);
break;
}
if(eval("\x01") != 342)
{
break;
}
set("\x01",eval("\x01") + 19);
if(§§pop())
{
set("\x01",eval("\x01") - 211);
}
}
}
}
}
}